﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Notice</title>
		<%@ include file="/share/include.jsp" %>
   		 <meta name="viewport" content="width=device-width, initial-scale=1">
		 <script type="application/x-javascript"> 
			addEventListener("load", function() { 
				setTimeout(hideURLbar, 0); 
			}, false); 
			function hideURLbar(){ 
				window.scrollTo(0,1); 
			} 
		</script>
	</head>
	<body>
		<!-- container -->
		<!-- header -->
		<div class="header">
			<%@ include file="/control/jsp/layout/header.jsp" %>
			<!-- /bottom-header -->
		</div>
		<!-- header -->
		<!--- top-nav -->
			<%@ include file="/control/jsp/layout/indexMenu.jsp" %>
		<!--- top-nav -->
		<!-- notices -->
		<div class="about">
				<!----- header-section ---->
				<div class="header-section">
					<div class="container">
						<h1>Station Announcement</h1>
					</div>
				</div>
				<!---- aboutgrids ----->
				<div class="about-grids">
					<div class="container">
						<div class="about-left-grids" style="width:100%;">
							<c:if test="${not empty pageView.records }">
			      				<c:forEach items="${pageView.records }" var="notice" varStatus="index">
			      					<c:if test="${empty noticeForm.noticeId }">
			      						<h2>${index.index + 1 }.${fn:escapeXml(notice.noticeTitle) }</h2>
			      						<p align="right"><fmt:formatDate value="${notice.noticeCreateTime}" pattern="yyyy-MM-dd HH:mm:ss"/></p>
			      					</c:if>
			      					<c:if test="${not empty noticeForm.noticeId }">
			      						<h2 align="center">${fn:escapeXml(notice.noticeTitle) }</h2>
			      						<p align="center"><fmt:formatDate value="${notice.noticeCreateTime}" pattern="yyyy-MM-dd HH:mm:ss"/></p>
			      					</c:if>
									<div style="text-indent:2em ">
										${fn:escapeXml(notice.noticeContent)}
									</div>
			      				</c:forEach>
			      			</c:if>
						</div>
						<div class="clearfix"> </div>
					</div>
					<c:if test="${empty noticeForm.noticeId }">
   						<!--page-->
						 <%@ include file="/share/pageOne.jsp" %>
						<!--end page-->
   					</c:if>
   					<c:if test="${not empty noticeForm.noticeId }">
   					</c:if>
				</div>
				<!---- aboutgrids ----->
				<!----- header-section ---->
			</div>
		<!-- notices -->
		<!-- footer -->
		<%@ include file="/control/jsp/layout/footer.jsp" %>
</body>
</html>

